package com.zis.wechat.web;

import com.zis.wechat.api.inter.IWechatInter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Create by wangshen 2018/1/11
 */
@RestController
@RequestMapping("/api/open/wechat")
public class WechatRestful {

    @Autowired
    private IWechatInter wechatInter;


    @RequestMapping(value = "/jssdk/sign/{accountId}", method = RequestMethod.GET)
    @ResponseBody
    public String jssdkSign(@PathVariable("accountId") String accountId) throws Exception {
        return wechatInter.JsApiToken(accountId);
    }
}
